Vercel

AI models

Add AI functionality to your v0 projects by integrating AI models and platforms.

v0 can build AI functionality into your projects by integrating with AI platforms or by using API keys for specific providers. By default, v0 uses the Vercel AI Gateway to connect to various AI models.

Using the Vercel AI Gateway

To use the Vercel AI Gateway, no additional setup is required. v0 is pre-configured to connect to the gateway and access supported AI models.

Marketplace integrations

v0 integrates with AI platforms like fal and Deep Infra. You can also connect directly to Grok by xAI.

From Project Menu ...Integrations, you'll see supported providers. Click Install to open the Marketplace and accept click-through terms to activate an integration.

v0 integration options

APIs

To integrate with third-party AI models such as OpenAI, you can add the necessary environment variables (e.g. OPEN_AI_API_KEY) from Project Menu ...Environment Variables.

v0 will now use this variable when prompted to generate AI functionality.

On this page